package com.peg.rules;

import com.peg.dataobjects.Context;

/**
 * @author sad
 */
public class Test extends ContainerRule {

    public Test(Rule rule) {
        setRule(rule);
    }

    public Test() {
    }

    @Override
    public boolean execute(Context context) {
        boolean result = executeRule(getRule(), context);
        setForceRestoreState(true);
        return result;
    }

    @Override
    public String toString() {
        return "Test";
    }
    
    
}
